﻿<sdk:ChildWindow
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="B2B.Views.SiparisSonuc"
           Width="900" Height="503.5" 
           Title="">
    <Grid x:Name="LayoutRoot" Background="White">

        <sdk:DataGrid Margin="4,34,4,0" VerticalAlignment="Top" Height="286" x:Name="grdSiparis" AutoGenerateColumns="False">
            <sdk:DataGrid.Columns>
                <sdk:DataGridCheckBoxColumn Binding="{Binding Sec}" Width="30"/>
                <sdk:DataGridTextColumn Binding="{Binding Kodu}" IsReadOnly="True" Width="150" Header="Kod"/>
                <sdk:DataGridTextColumn Binding="{Binding Adi}" IsReadOnly="True" Width="350" Header="Ürün Adı"/>
                <!--<sdk:DataGridTextColumn Binding="{Binding Miktar}" Width="70" Header="Adet"/>-->
                <sdk:DataGridTemplateColumn Header="Adet">
                    <sdk:DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <TextBox x:Name="txtMiktar" Tag="{Binding}" TextChanged="txtMiktar_TextChanged_1" TextAlignment="Center" Text="{Binding Miktar}" Width="70"></TextBox>
                        </DataTemplate>
                    </sdk:DataGridTemplateColumn.CellTemplate>
                </sdk:DataGridTemplateColumn>

                <sdk:DataGridTextColumn Binding="{Binding Fiyat}" IsReadOnly="True" Width="70" Header="Fiyat"/>
                <!--<sdk:DataGridTextColumn Binding="{Binding IskontoToplam}" IsReadOnly="True" Width="70" Header="İskonto"/>-->
                <sdk:DataGridTextColumn Binding="{Binding KdvOrani}" IsReadOnly="True" Width="70" Header="Kdv"/>
                <sdk:DataGridTextColumn Binding="{Binding Yekun}" IsReadOnly="True" Width="90" Header="Tutar"/>
            </sdk:DataGrid.Columns>
        </sdk:DataGrid>
        <Border BorderThickness="1" Margin="2,0" CornerRadius="5" VerticalAlignment="Top">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFB3493B" Offset="0"/>
                    <GradientStop Color="#FF871B20" Offset="1"/>
                </LinearGradientBrush>
            </Border.Background>
            <Grid Margin="0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="0.167*"/>
                    <ColumnDefinition Width="0.567*"/>
                    <ColumnDefinition Width="0.127*"/>
                    <ColumnDefinition Width="0.139*"/>
                    <ColumnDefinition Width="0*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="1" Margin="8,4,0,3" Text="Alışveriş Listem" FontSize="16" FontFamily="Tahoma" Foreground="White"/>
                <HyperlinkButton x:Name="btnYazdir" Grid.Column="4" Margin="0,4,0,3" Content="Listeyi Yazdır" FontSize="16" FontFamily="Tahoma" Foreground="White"/>
            </Grid>
        </Border>
        <TextBlock HorizontalAlignment="Right" Height="20" Margin="0,0,233,107" TextWrapping="Wrap" Text="Ara Toplam :" VerticalAlignment="Bottom" Width="105" Foreground="#FF871B20" FontFamily="Tahoma" FontSize="16" TextAlignment="Right" d:LayoutOverrides="VerticalAlignment"/>
        <TextBox x:Name="txtAraToplam" HorizontalAlignment="Right" Height="29" Margin="0,0,4,103" TextWrapping="Wrap" VerticalAlignment="Bottom" Width="225" TextAlignment="Right" Text="0" FontSize="16" d:LayoutOverrides="VerticalAlignment" IsReadOnly="True"/>
        <TextBox x:Name="txtIndirim" HorizontalAlignment="Right" Height="29" Margin="0,0,4,-53" TextWrapping="Wrap" VerticalAlignment="Bottom" Width="225" TextAlignment="Right" Text="0" FontSize="16" IsReadOnly="True"/>
        <TextBox x:Name="txtKdv" HorizontalAlignment="Right" Height="29" Margin="0,0,4,70" TextWrapping="Wrap" VerticalAlignment="Bottom" Width="225" TextAlignment="Right" Text="0" FontSize="16" IsReadOnly="True"/>
        <TextBox x:Name="txtYekun" HorizontalAlignment="Right" Height="29" Margin="0,0,4,37" TextWrapping="Wrap" VerticalAlignment="Bottom" Width="225" TextAlignment="Right" Text="0" FontSize="16" IsReadOnly="True"/>
        <TextBlock HorizontalAlignment="Right" Height="20" Margin="0,0,233,-48" TextWrapping="Wrap" Text="İndirim Toplamı :" VerticalAlignment="Bottom" Width="130" Foreground="#FF871B20" FontFamily="Tahoma" FontSize="16" TextAlignment="Right"/>
        <TextBlock HorizontalAlignment="Right" Height="20" Margin="0,0,233,75" TextWrapping="Wrap" Text="Kdv Toplamı :" VerticalAlignment="Bottom" Width="105" Foreground="#FF871B20" FontFamily="Tahoma" FontSize="16" TextAlignment="Right"/>
        <TextBlock HorizontalAlignment="Right" Height="20" Margin="0,0,233,41" TextWrapping="Wrap" Text="Yekün :" VerticalAlignment="Bottom" Width="105" Foreground="#FF871B20" FontFamily="Tahoma" FontSize="16" TextAlignment="Right"/>
        <TextBlock HorizontalAlignment="Left" Height="20" Margin="7,0,0,128" TextWrapping="Wrap" Text="Notlar" VerticalAlignment="Bottom" Width="51" Foreground="#FF871B20" FontFamily="Tahoma" FontSize="16" TextAlignment="Center" TextDecorations="Underline" d:LayoutOverrides="VerticalAlignment"/>
        <Button x:Name="btnSil" Content="Seçili Olanları Sil" HorizontalAlignment="Left" Height="25" Margin="10,0,0,8" VerticalAlignment="Bottom" Width="150" FontSize="13.333" FontFamily="Tahoma" Click="btnSil_Click_1"/>
        <TextBox x:Name="txtAciklama" Height="91" Margin="8,0,398,36" TextWrapping="Wrap" VerticalAlignment="Bottom" HorizontalScrollBarVisibility="Auto" AcceptsReturn="True"/>
        <Button x:Name="btnBitir" Content="Siparişi Tamamla" HorizontalAlignment="Left" Height="25" Margin="334,0,0,8" VerticalAlignment="Bottom" Width="150" FontSize="13.333" FontFamily="Tahoma" Click="btnBitir_Click"/>

    </Grid>
</sdk:ChildWindow>